//
//  UITableViewCell+QDTextListModelUpdater.h
//  QDMetroClient
//
//  Created by YueWen on 2019/2/18.
//  Copyright © 2019 YueWen. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "QDTextTableViewCell.h"

NS_ASSUME_NONNULL_BEGIN

@interface UITableViewCell (QDTextListModelUpdater)

/// 更新资讯的数据
- (void)textUpdateByData:(nullable id)data
             atIndexPath:(NSIndexPath *)indexPath
                delegate:(id)delegate
         associateObject:(nullable id)associatedObject;


/// 根据数据由cell计算高度
- (CGFloat)textUpdaterHeightByData:(nullable id)data atIndexPath:(NSIndexPath *)indexPath;


@end



@interface QDTextTableViewCell (QDTextListModelUpdater)

///// 更新资讯的数据
//- (void)textUpdateByData:(nullable id)data
//             atIndexPath:(NSIndexPath *)indexPath
//                delegate:(id)delegate
//         associateObject:(nullable id)associatedObject;
//
//
///// 根据数据由cell计算高度
//- (CGFloat)textUpdaterHeightByData:(nullable id)data atIndexPath:(NSIndexPath *)indexPath;


@end

NS_ASSUME_NONNULL_END
